package com.ruoyi.basedata.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseDO;
import lombok.Data;

import java.util.Date;

/**
 * 楼栋对象 t_ld
 * 
 * @author ruoyi
 * @date 2023-09-07
 */
@Data
@TableName("t_ld")
public class LouDong extends BaseDO
{
    private static final long serialVersionUID = 1L;

    /** 平台表单自增主键 */
    @TableId
    private Long ID;

    /** 租户ID */
    @Excel(name = "租户ID")
    @TableField("tenant_id")
    private String tenantId;

    /** 区域编码 */
    @Excel(name = "区域编码")
    private String AreaCode;

    /** 楼栋编号 */
    @Excel(name = "楼栋编号")
    @TableField("ld_id")
    private String ldId;

    /** 楼栋名 */
    @Excel(name = "楼栋名")
    @TableField("ld_name")
    private String ldName;

    /** 地上层数 */
    @Excel(name = "地上层数")
    private String overground;

    /** 地下层数 */
    @Excel(name = "地下层数")
    private String underground;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("create_time")
    private Date createTime;

    @TableLogic
    private Integer DeleteMark;

    @TableField(exist = false)
    @Excel(name = "区域名称")
    private String areaName;

    @TableField(exist = false)
    private String treeAreaCode;

    @TableField(exist = false)
    private Integer treeType = 2;

    @TableField(exist = false)
    private String belongDepartment;

    @TableField(exist = false)
    private Boolean leaf;


}
